-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(stack reorder): Add command scaffolding #123
Conversation
Current Aviator status
This PR was merged using Aviator. Stack
|
internal/reorder/stackbranch.go
Outdated
|
||
// StackBranchCmd is a command to create a new branch in a stack. | ||
// | ||
// branch <branch-name> [--parent <parent-branch-name>] [--trunk <trunk-branch-name>] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stack-branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, thanks. Originally it was named just branch
(before the decision to make it stack-branch
to avoid conflicts with rebase's break
) and I just missed these. Thanks for catching!
internal/reorder/parse.go
Outdated
args = args[1:] | ||
switch cmdName { | ||
case "stack-branch", "sb": | ||
return parseBranchCmd(args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps rename this as parseStackBranchCmd to align with the command name?
This pull request failed to merge: top queued PR in the stack failed to merge. Remove the |
When a PR gets closed by "Close #123", usually GitHub marks the PR to be closed by certain commit. However, this mechanism is not reliable, and sometimes GitHub doesn't mark it so and just close it. This breaks the merge commit detection since av-cli doesn't have a way to know it from GitHub API. By using git-log, we can figure out whether there's actually a commit that closes the PRs with this comment. This adds that extra detection method. In order to make this work, it moves the timing of git-fetch. This is needed in order for a local repository to have commits in the upstream to check the commit messages.
When a PR gets closed by "Close #123", usually GitHub marks the PR to be closed by certain commit. However, this mechanism is not reliable, and sometimes GitHub doesn't mark it so and just close it. This breaks the merge commit detection since av-cli doesn't have a way to know it from GitHub API. By using git-log, we can figure out whether there's actually a commit that closes the PRs with this comment. This adds that extra detection method. In order to make this work, it moves the timing of git-fetch. This is needed in order for a local repository to have commits in the upstream to check the commit messages.
When a PR gets closed by "Close #123", usually GitHub marks the PR to be closed by certain commit. However, this mechanism is not reliable, and sometimes GitHub doesn't mark it so and just close it. This breaks the merge commit detection since av-cli doesn't have a way to know it from GitHub API. By using git-log, we can figure out whether there's actually a commit that closes the PRs with this comment. This adds that extra detection method. In order to make this work, it moves the timing of git-fetch. This is needed in order for a local repository to have commits in the upstream to check the commit messages.
…es (#218) When a PR gets closed by "Close #123", usually GitHub marks the PR to be closed by certain commit. However, this mechanism is not reliable, and sometimes GitHub doesn't mark it so and just close it. This breaks the merge commit detection since av-cli doesn't have a way to know it from GitHub API. By using git-log, we can figure out whether there's actually a commit that closes the PRs with this comment. This adds that extra detection method. In order to make this work, it moves the timing of git-fetch. This is needed in order for a local repository to have commits in the upstream to check the commit messages.
Breaking this into a few parts.
This PR is intended to just define the base scaffolding. Namely, we're just defining the structure of the
stack-branch
andpick
commands (ultimately the goal is to support all the commands fromgit rebase --interactive
in addition to some av specific ones likestack-branch
).This code is not called from anywhere currently.